package top.hcode.hoj.pojo.entity.common;

/**
 * @author orangej
 * @since 2025/1/2
 */

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author orangej
 * @since : 2025-1-2 16:45:25
 * @description : 文件预览信息，目前用于保存ppt转为图片后的url地址
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="文件预览", description="")
public class FilePreview  implements Serializable {

    private static final long serialVersionUID = -8830590575590985778L;

    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty(value = "预览方式：image")
    private String previewType;

    @ApiModelProperty(value = "图片张数")
    private Integer pageNum;

    @ApiModelProperty(value = "预览url，例如：https://oistufy.rui-ya.com/preview/{id}-{page}.jpg")
    private String previewUrl;

    @ApiModelProperty(value = "原始文件url")
    private String fileUrl;

    @ApiModelProperty(value = "原始文件类型")
    private String fileType;

    private Date gmtCreate;

    private Date gmtModified;
}
